<?php

/** 
 * @author Boo
 * 
 */
class iKey {
	public static function generate($n) {
		$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
		$randstring = '';
		for($i = 0; $i < $n; $i ++) {
			$randstring .= $characters [rand ( 0, strlen ( $characters ) - 1 )];
		}
		return $randstring;
	}
	public static function encrypepass($pass) {
		return md5 ( $pass );
	}
}
?>